body {
    font-family: Arial, sans-serif;
}

.image-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Spațiere mai mare între imagini */
    justify-content: space-between;
    margin: 20px 0;
}

.image-item {
    flex: 0 1 32%; /* Trei imagini pe rând */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    border: none;
    border-radius: 10px; /* Margini rotunjite */
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Umbră pentru card */
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #fff;
}

.image-item:hover {
    transform: translateY(-10px); /* Efect de ridicare la hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Umbră mai puternică la hover */
}

.image-container {
    width: 100%;
    position: relative;
    padding-bottom: 100%; /* Păstrează raportul de aspect pătrat */
    border-bottom: 2px solid #ddd; /* Linie de separare între imagine și text */
    overflow: hidden;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.image-container img:hover {
    transform: scale(1.05); /* Efect de zoom la hover */
}

.image-text {
    font-size: 1.25em;
    font-weight: bold;
    color: #333;
    padding: 15px;
    text-align: center;
    background-color: #fff;
}

/* Media queries pentru responsive design */
@media (max-width: 1200px) {
    .image-item {
        flex: 0 1 32%; /* Trei imagini pe rând la dimensiuni mari de tabletă și desktop-uri mici */
    }
}

@media (max-width: 992px) {
    .image-item {
        flex: 0 1 48%; /* Două imagini pe rând pe tablete */
    }
}

@media (max-width: 768px) {
    .image-item {
        flex: 0 1 48%; /* Două imagini pe rând pe telefoane în landscape */
    }
}

@media (max-width: 576px) {
    .image-item {
        flex: 0 1 100%; /* O imagine pe rând pe telefoane în portrait */
    }
}
